home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / util / sys / 68040Lib.lha / 68040Lib / Include / mmu / descriptor.h < prev    next >
C/C++ Source or Header  |  2000-04-02  |  2KB  |  57 lines

  1. /*************************************************************************
  2.  ** mmu.library                                                         **
  3.  **                                                                     **
  4.  ** a system library for arbitration and control of the MC68K MMUs      **
  5.  **                                                                     **
  6.  ** © 1998 THOR-Software, Thomas Richter                                **
  7.  ** No commercial use, reassembly, modification without prior, written  **
  8.  ** permission of the authors.                                          **
  9.  ** Including this library in any commercial software REQUIRES a        **
  10.  ** written permission and the payment of a small fee.                  **
  11.  **                                                                     **
  12.  **---------------------------------------------------------------------**
  13.  ** Definition of the abstract data descriptor                **
  14.  **                                    **
  15.  ** $VER: 40.50 (31.10.99)                        **
  16.  *************************************************************************/
  17.  
  18. #ifndef MMU_DESCRIPTOR_H
  19. #define MMU_DESCRIPTOR_H
  20.  
  21. /**
  22.  ** This structure describes a MMU descriptor abstractly. This structure
  23.  ** must be passed to GetIndirect, and will be filled in by the library
  24.  ** there is currently no other use for this structure.
  25.  ** Especially, do not interpret undocumented fields.
  26.  **/
  27.  
  28. struct AbstractDescriptor {
  29.     ULONG        atd_Pointer;        /* logical address */
  30.     ULONG        atd_Properties;        /* MMU properties */
  31.  
  32. /** 
  33.  ** The next fields are filled in, but currently intentionally undocumented.
  34.  ** However, they MUST be allocated.
  35.  **/
  36.  
  37.     UWORD        atd_LowerLimit;
  38.     UWORD        atd_UpperLimit;
  39.     UBYTE        atd_ThisType;
  40.     UBYTE        atd_NextType;
  41.     UWORD        atd_reserved;
  42. };
  43.  
  44. /** 
  45.  ** About the properties: Only a minor subset is supported here.
  46.  ** Check the documenation mmu.doc for details what you may expect here
  47.  ** and what not.
  48.  **/
  49.  
  50. /**
  51.  ** This is returned if BuildIndirect() failed:
  52.  **/
  53.  
  54. #define BAD_DESCRIPTOR    3
  55.  
  56. #endif
  57.